package forum;

import java.util.Arrays;

public class ForumSentence {
	private String text;
	private String itemsText;
	private String emotion;
	private int sentId;
	private int postId;

	private ForumItem[] items;

	ForumSentence(int sentId, String text, int postId) {
		this.sentId = sentId;
		this.text = text;
		this.postId = postId;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getEmotion() {
		return emotion;
	}

	public void setEmotion(String emotion) {
		this.emotion = emotion;
	}

	public String toString() {
		String emo = emotion != null ? emotion : "null";
		String its = Arrays.deepToString(items);
		return emo + "\t" + its + "\t" + sentId + "\t" + text;
	}

	public ForumItem[] getItems() {
		return items;
	}

	public void setItems(ForumItem[] item) {
		this.items = item;
	}
	
	public int getSentId() {
		return sentId;
	}

	public void setSentId(int sentId) {
		this.sentId = sentId;
	}

	public int getPostId() {
		return postId;
	}

	public void setPostId(int postId) {
		this.postId = postId;
	}
	
	public String getItemsText() {
		return itemsText;
	}

	public void setItemsText(String itemsText) {
		this.itemsText = itemsText;
	}
}
